# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class PageRule(object):

    def __init__(self, id=None, targets=None, actions=None, priority=None, status=None, modified_on=None, created_on=None):
        """
        :param id: (Optional) API条目标识符标签
        :param targets: (Optional) 对请求进行评估的目标
        :param actions: (Optional) 如果此规则的目标与请求相匹配，要执行的一系列行动。行动可以将网址重定向到另一个网址或覆盖设置（但不能同时进行）。
        :param priority: (Optional) 一个数字，表示一个页面规则优先于另一个页面规则。
如果您可能有一个全面页面规则（例如#1 '/images/'）
但是想要更具体的规则优先（例如#2 '/images/special/），
您需要在后者（#2）上指定更高的优先级，以便它将覆盖第一个优先级。

        :param status: (Optional) 页面规则的状态
        :param modified_on: (Optional) 上次修改页面规则的时间
        :param created_on: (Optional) 创建页面规则时间
        """

        self.id = id
        self.targets = targets
        self.actions = actions
        self.priority = priority
        self.status = status
        self.modified_on = modified_on
        self.created_on = created_on
